#ifndef  __KERNEV_H__
#define  __KERNEV_H__

#include  "event.h"
#include  "pcb.h"

class KernelEv {
    public:
        KernelEv();
        ~KernelEv();
    private:
        friend Event;

        /** 
         * @brief Vlasnik ovog dogadjaja
         */
        PCB*     owner;
        /** 
         * @brief Stara prekidna rutina
         */
        void     interrupt (*old_routine) ();
        /** 
         * @brief Semafor nad kojim se blokira nit
         */
        Semaphore *event_sem;
        /** 
         * @brief Broj prekida
         */
        IVTNo     int_num;
};



#endif  /*__KERNEV_H__*/
